﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucPhotoGallery.ascx.cs"
    Inherits="Indochinaodyssey.UserControl.Photo.ucPhotoGallery" %>
<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>


<div style="background: #cccccc">
    <asp:DataList ID="DataList1" runat="server" DataSourceID="odsPhotoGallery" Width="95%"
        HorizontalAlign="Center">
        <ItemTemplate>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="border-bottom: #1f9b23 2px solid;">
                <tbody>
                    <tr>
                        <td height="41">
                            <span class="title2">
                                <asp:Label ID="TenTheLoaiLabel" runat="server" Text='<%# Eval("TenTheLoai") %>' />
                            </span>
                        </td>
                    </tr>
                </tbody>
            </table>
            <br />
            <asp:HiddenField ID="hlIdTheLoai" runat="server" Value='<%# Eval("ID") %>' />
            <asp:ObjectDataSource ID="odsHinhAnhByTheLoai" runat="server" SelectMethod="HinhAnh_getHinhAnh"
                TypeName="IOBusiness.ClassLinq.clsLqPhoto">
                <SelectParameters>
                    <asp:ControlParameter ControlID="hlIdTheLoai" Name="idTheLoai" PropertyName="Value"
                        Type="Int32" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <asp:DataList ID="DataList2" runat="server" DataSourceID="odsHinhAnhByTheLoai" RepeatColumns="4"
                Width="100%" HorizontalAlign="Center">
                <ItemTemplate>
                    <div>
                        <a id="thumb1" href='<%# "Images/HinhAnh/" + Eval("Url") %>' class="highslide" onclick="return hs.expand(this)">
                            <img src='<%# "Images/HinhAnh/" + Eval("Url") %>' alt='<%# Eval("TieuDe") %>' title="Click to enlarge"
                                height="80" width="120"></a>
                             <div class="highslide-caption">
	<%# Eval("TieuDe") %>
</div>   
                </ItemTemplate>
            </asp:DataList>
        </ItemTemplate>
    </asp:DataList>
    <cc1:CollectionPager ID="CollectionPager1" runat="server" MaxPages="5" PageSize="10">
    </cc1:CollectionPager>
    <asp:ObjectDataSource ID="odsPhotoGallery" runat="server" SelectMethod="TheLoai_getTheLoaiByDanhMucId"
        TypeName="IOBusiness.ClassLinq.clsLqTheLoai">
        <SelectParameters>
            <asp:Parameter DefaultValue="6" Name="idDanhMuc" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</div>

